<img id="avatar_small_preview" src="{$small_avatar}" />
<a href="javascript:;" class="btn-att-white" onclick="changeFace()" style="vertical-align:bottom;margin:0 0 0 5px;"><span>上传头像</span></a>

<script type="text/javascript">
var changeFace = function() {
	ui.box.load(U('widget/AvatarBox/show'), '上传头像');
	return false;
};
</script>